// babel-preset-taro 更多选项和默认值：
// https://github.com/NervJS/taro/blob/next/packages/babel-preset-taro/README.md
module.exports = {
  presets: [
    ['taro', {
      framework: 'react',
      ts: true
    }]
  ],
  plugins: [
    [
      'module-resolver',
      {
        root: ['./'], // 根目录
        alias: {
          '@': './src', // '@' 别名指向 src 目录
        },
      },
    ],
  ],
}
